-- GENERATED SPELL FOR [Slitherblade Tidehunter] --


function spell0_4716(pUnit, Event) --@Frost Nova,Self--
pUnit:FullCastSpellOnTarget(865,pUnit)
pUnit:RegisterEvent('Sorts_4716', 8000, 1)
end

function spell1_4716(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(10277,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4716', 500, 1)
end

function Sorts_4716(pUnit, Event)
local choix_sorts_4716 = math.random(0, 1)
if choix_sorts_4716 == 0 then
pUnit:RegisterEvent('spell0_4716', 1, 1)
end
if choix_sorts_4716 == 1 then
pUnit:RegisterEvent('spell1_4716', 1, 1)
end
end

function mob4716_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4716', math.random(1500, 3000), 1)
end

function mob4716_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4716_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4716_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4716, 1, 'mob4716_Action')
RegisterUnitEvent(4716, 2, 'mob4716_Leave')
RegisterUnitEvent(4716, 3, 'mob4716_Kill')
RegisterUnitEvent(4716, 4, 'mob4716_Die')
